<template>
  <div class="home">
    <Banners></Banners>
    <BasisService></BasisService>
    <ManagService></ManagService>
    <AddedService></AddedService>
    <FinacialService></FinacialService>
  </div>
</template>
<style lang="less">
@import './index.less';
</style>
<script>
import Banners from './banners'
import BasisService from './basisService'
import ManagService from './managService'
import AddedService from './addedService'
import FinacialService from './financialService'
import { getuser } from '@/views/userHome/userhome.js'
import { setItem } from '@/utils/store.js'
export default {
  data() {
    return {
      
    }
  },
  components:{
    Banners,BasisService,ManagService,AddedService,FinacialService
  },
  created(){
    this.getuser()
  },
  methods:{
    async getuser() {
      //获取登录用户信息
      try {
        const data = await getuser()
        this.userdata = data.data
        setItem('USER_INFO', data)
        // console.log(data, '登录用户信息存储')
      } catch (error) {
        this.$message.error(error)
        // console.log(error)
      }
    },
  }
}
</script>